# 获取用户列表（不带参数）
curl -X GET "http://localhost:5000/api/v1/users"

# 获取用户列表（带分页和搜索参数）
curl -X GET "http://localhost:5000/api/v1/users?page=1&size=10&keyword=admin"

# 创建用户
curl -X POST "http://localhost:5000/api/v1/users" \
  -H "Content-Type: application/json" \
  -d '{
    "username": "testuser",
    "password": "123456",
    "real_name": "测试用户",
    "email": "test@example.com",
    "mobile": "13800138000",
    "status": true
  }'

# 获取指定用户详情
curl -X GET "http://localhost:5000/api/v1/users/1"

# 更新用户信息
curl -X PUT "http://localhost:5000/api/v1/users/1" \
  -H "Content-Type: application/json" \
  -d '{
    "real_name": "更新名称",
    "email": "update@example.com",
    "mobile": "13800138001"
  }'

# 删除用户
curl -X DELETE "http://localhost:5000/api/v1/users/1"

# 修改用户状态
curl -X PATCH "http://localhost:5000/api/v1/users/1/status" \
  -H "Content-Type: application/json" \
  -d '{
    "status": false
  }'

# 重置用户密码
curl -X POST "http://localhost:5000/api/v1/users/1/reset-password" \
  -H "Content-Type: application/json" \
  -d '{
    "new_password": "newpassword123"
  }'

# 修改当前用户密码
curl -X PUT "http://localhost:5000/api/v1/users/password" \
  -H "Content-Type: application/json" \
  -d '{
    "old_password": "123456",
    "new_password": "newpassword123"
  }' 